package main.java.zemo.game;


import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;

public class Box{

	/**
	 * @uml.property  name="adyacentes"
	 */
	private Collection<Integer> adyacentes;

	/**
	 * Getter of the property <tt>adyacentes</tt>
	 * @return  Returns the adyacentes.
	 * @uml.property  name="adyacentes"
	 */
	public Box(int code){
		this.corridor = new ArrayList<Integer>();
		this.code = code;
		adyacentes = new HashSet<Integer>();
	}
	public Collection<Integer> getAdyacentes() {
		return adyacentes;
	}

	/**
	 * Setter of the property <tt>adyacentes</tt>
	 * @param adyacentes  The adyacentes to set.
	 * @uml.property  name="adyacentes"
	 */
	public void setAdyacentes(Collection<Integer> adyacentes) {
		this.adyacentes = adyacentes;
	}

	/**
	 * @uml.property  name="player"
	 * @uml.associationEnd  inverse="casilla1:Player"
	 */
	private Player player;

	/**
	 * Getter of the property <tt>player</tt>
	 * @return  Returns the player.
	 * @uml.property  name="player"
	 */
	public Player getJugador() {
		return player;
	}

	/**
	 * Setter of the property <tt>player</tt>
	 * @param player  The player to set.
	 * @uml.property  name="player"
	 */
	public void setJugador(Player player) {
		this.player = player;
	}



	/**
	 * @uml.property  name="Corridor"
	 */
	private List<Integer> corridor;

	/**
	 * Getter of the property <tt>Corridor</tt>
	 * @return  Returns the corridor.
	 * @uml.property  name="Corridor"
	 */
	public List<Integer> getCorridor() {
		return corridor;
	}

	/**
	 * Setter of the property <tt>Corridor</tt>
	 * @param Corridor  The corridor to set.
	 * @uml.property  name="Corridor"
	 */
	public void setCorridor(Integer corridor) {
		this.corridor.add(corridor);
	
	}
	public void addAdyacente(Integer aux){
		this.adyacentes.add(aux);
	}

	public Player getPlayer() {
		return player;
	}
	public void setPlayer(Player player) {
		this.player = player;
	}
	public void setCorridor(List<Integer> corridor) {
		this.corridor = corridor;
	}

	/**
	 * @uml.property  name="code"
	 */
	private int code;

	/**
	 * Getter of the property <tt>code</tt>
	 * @return  Returns the code.
	 * @uml.property  name="code"
	 */
	public int getCode() {
		return code;
	}

	/**
	 * Setter of the property <tt>code</tt>
	 * @param code  The code to set.
	 * @uml.property  name="code"
	 */
	public void setCode(int code) {
		this.code = code;
	}

	
}
